package com.hxzy.shop.commodity.feign.marketing;

import com.hxzy.shop.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author by zhy
 * @date 2021-08-04 13:16
 * @Version 1.0
 */
@FeignClient(value = "marketing")
public interface MarketingFeigh {
    //删除积分商品
    @ApiOperation("判断能否删除积分商品")
    @PostMapping("/pointReward/getPointsReward")
    public Result<Boolean> getPointsReward(@RequestParam("rewardId") String rewardId,
                                           @RequestParam("type") String type,
                                           @RequestHeader("merchantId") String merchantId);
}